package com.jing.weibo.mapper.pb;

import java.util.List;

import com.jing.weibo.pojo.pb.PbType;


/**
 * 泡吧分区的Mapper
 * @author jing.yue
 * @version 2012/09/25 1.0.0
 */
public interface PbTypeMapper {

	/**
	 * 获取所有泡吧分区列表
	 * @return
	 * @throws Exception
	 */
	public abstract List<PbType> findAllPbType() throws Exception;

	/**
	 * 添加泡吧分区
	 * @param pbType
	 * @throws Exception
	 */
	public abstract void savePbType(PbType pbType) throws Exception;

	/**
	 * 根据分区ID获取总的用户数
	 * @param pbType
	 * @return
	 * @throws Exception
	 */
	public abstract Integer findByPbTypeIdCountUser(PbType pbType) throws Exception;

	/**
	 * 获取没有位置的用户数量
	 * @return
	 * @throws Exception
	 */
	public abstract Integer findNotPbTypeSeatCountUser() throws Exception;
}